package com.program.beautymakeup.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.program.beautymakeup.domain.entity.PortfolioImg;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PortfolioImgMapper extends BaseMapper<PortfolioImg> {
    int deleteByPrimaryKey(Integer id);

    int insert(PortfolioImg record);

    int insertSelective(PortfolioImg record);

    PortfolioImg selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PortfolioImg record);

    int updateByPrimaryKey(PortfolioImg record);

    /**
     * 根据id搜索对应作品集的作品图片集合
     * @param portfolioId
     * @return
     */
    List<PortfolioImg> selectByPortfolioId(Integer portfolioId);

    void batchInsertPortfolioImg(List<PortfolioImg> portfolioImgList);

    void deleteByUrls(List<String> urls);
}